package com.googlecode.rotools.app;

import java.io.File;
import java.util.Hashtable;
import java.util.Map;
import java.util.Properties;

public class Context {
	private File directory;
	private Properties properties;
	private Map<Object, Object> datas = new Hashtable<Object, Object>();
	
	public File getDirectory() {
		return directory;
	}
	public void setDirectory(File directory) {
		this.directory = directory;
	}
	public Properties getProperties() {
		return properties;
	}
	public void setProperties(Properties properties) {
		this.properties = properties;
	}
	@SuppressWarnings("unchecked")
	public <K,V> V getData(K key){
		return (V)datas.get(key);
	}
	@SuppressWarnings("unchecked")
	public <K,V> V setData(K key, V value){
		return (V)datas.put(key, value);
	}
}
